/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module7.exercise2;

/**
 *
 * @author trang
 */
public class Cat extends  Animal implements Pet{
    public String name;

    public Cat(int legs, String name) {
        super(4);
        this.name = name;
    }
//    public Cat() {
  //  }

    public String getName() {
        return name;
    }

    public void play() {
    }

    public void setName(String name) {
        this.name=name;
    }

    @Override
    public void eat() {
        System.out.println("Cat is eating");
    }


    }



